<template>
  <div>
    <h2>Childone -1</h2>
    <h2>thiscount -- {{ count }}</h2>
    <h2>word - {{ word }}</h2>
    <h2>msg -- {{ msg }}</h2>
    <h2>num -- {{ num }}</h2>
  </div>
</template>


<script>
export default {
  name: "child-one",
  props: ["count", "word"],
  data() {
    return {
      msg: "努力学习......",
      num: 2000,
    };
  },
  mounted() {
    this.$bus.$on("changeone", (n) => (this.num += n));
  },
};
</script>
